<p id="notice"><%= notice %></p>


<table class="table table-striped">
  <thead>
    <tr>
      <th>姓名</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @users.each do |user| %>

      <tr>
        <td><%= user.name %></td>
        <td><%= link_to '详情', user %></td>
        <td><%= link_to '修改', edit_user_path(user) %></td>
        <td><%= link_to '删除', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>

    <% end %>


  </tbody>
</table>

<br>

<%= link_to '新建用户', new_user_path %>
<%= link_to '首页', '/' %>